

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="CodeHope">
  <meta name="author" content="CodeHope">
  <meta name="keywords" content="希望">
  <title>CodeHope</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"quancundexiwang.wang","root":"/","version":"1.8.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":true,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"onlypost":true},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":"Mi65hxq7VAFUDwOLeIGAOgiV-gzGzoHsz","app_key":"hMuhiD4FRqhns4giqLiEH9HG","server_url":null}}};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>CodeHope</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                村头
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                我
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('http://qiniuyun.quancundexiwang.wang/20210509090921.png') repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.5)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="就爱吃番茄炒鸡蛋，最好加个鸡蛋！">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/28963/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg" style="object-fit:contain;" alt="整理一下垂直水平居中的方法！5种方法！">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/28963/">整理一下垂直水平居中的方法！5种方法！</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/28963/">
          
          
            
          
          弹性布局最简单啦！三行代码搞定
&lt;div id="wrap">
       &lt;div id="box">&lt;/div>
 &lt;/div>
display: flex;
justify-content: center;
align-items: center;
绝对定位①，假如知道要被居中盒子的宽高 width: 500px;
height: 500px;
position: 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-30 15:15" pubdate>
              2020-08-30
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/Css%E5%B8%83%E5%B1%80/">Css布局</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2159968526,2400154655&fm=15&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/32406/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2159968526,2400154655&fm=15&gp=0.jpg" style="object-fit:contain;" alt="Webpack整理">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/32406/">Webpack整理</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/32406/">
          
          
            
          
          webpack 记录从零开始配置1.webpack-初始化一个项目
webpack本地安装，目录规范


首先初始化一个node 环境
npm init 然后自定义配置！生成package.json文件！
我现在准备使用的是webpack 4.x


所以需要安装webpack 以及 webpack-cli


npm install --save-dev webpack
npm install 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-29 09:44" pubdate>
              2020-08-29
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AFwebpack/">前端webpack</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/javaScript/">javaScript</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/14576/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg" style="object-fit:contain;" alt="JavaScript基础面试记录">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/14576/">JavaScript基础面试记录</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/14576/">
          
          
            
          
          1.防抖防抖就是在用户页面进行交互操作时，频繁做一些不必要的操作，例如频繁点击一个请求的按钮，我们只需要让他最后一次成功！
在事件被触发n秒后再执行回调，如果在这n秒内又被触发，则重新计时。
代码
&lt;body>
    &lt;input id='input'>input&lt;/input>
&lt;/body>
&lt;script>
    const input = document
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-26 22:13" pubdate>
              2020-08-26
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF%E9%9D%A2%E8%AF%95/">前端面试</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript/">JavaScript</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1313430092,4065359957&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/59122/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1313430092,4065359957&fm=26&gp=0.jpg" style="object-fit:contain;" alt="MYSQL">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/59122/">MYSQL</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/59122/">
          
          
            
          
          MYSQL 学习1.常用数据类型1.1数值类型
MySQL支持所有标准SQL数值数据类型。


这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC)，以及近似数值数据类型(FLOAT、REAL和DOUBLE PRECISION)。


关键字INT是INTEGER的同义词，关键字DEC是DECIMAL的同义词。


BIT数据类型保存位字段值，并且支持M
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-26 22:13" pubdate>
              2020-08-26
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80/">计算机基础</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/mysql/">mysql</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3237702793,262763378&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/34932/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3237702793,262763378&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Styled-Components管理组件化开发的样式">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/34932/">Styled-Components管理组件化开发的样式</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/34932/">
          
          
            
          
          styled-components管理组件化开发的样式1.基本介绍话不多说先安装
yarn add styled-components


将一些样式和定义sass中的变量一样写入一个文件中统一管理 theme.js
export default &#123;
    primaryColor:
&#125;
在这里我们使用React来做组件
import React from 'react';

        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-06 17:55" pubdate>
              2020-08-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF-React/">前端-React</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/React%E6%A0%B7%E5%BC%8F%E7%9B%B8%E5%85%B3/">React样式相关</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/25222/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Css小特效-水滴Loading">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/25222/">Css小特效-水滴Loading</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/25222/">
          
          
            
          
          效果预览
code
&lt;div class="container">
  &lt;div class="drop">&lt;/div>
  &lt;div class="drop">&lt;/div>
  &lt;div class="drop">&lt;/div>
  &lt;div class="drop">&lt;/div>
  &lt;div class="drop">&lt;/div
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-05 00:13" pubdate>
              2020-08-05
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E5%96%9C%E6%AC%A2%E5%B0%8F%E7%89%B9%E6%95%88/">喜欢小特效</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/19249/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Css小特效-爱心">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/19249/">Css小特效-爱心</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/19249/">
          
          
            
          
          特效预览
html5
&lt;div id&#x3D;&#39;wrap&#39;&gt;
  &lt;div class&#x3D;&#39;heart&#39;&gt;
  &lt;&#x2F;div&gt;
&lt;&#x2F;div&gt;
&lt;div&gt;
  &lt;p&gt;
I have been in love with Meow for&lt;&#x2F;p&gt;
  
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-04 23:09" pubdate>
              2020-08-04
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E5%96%9C%E6%AC%A2%E5%B0%8F%E7%89%B9%E6%95%88/">喜欢小特效</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgXKSIE0JX9yQ0CHrtD3Ux5aZlPEN26uKaNw&usqp=CAU') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/44138/" target="_self">
          <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgXKSIE0JX9yQ0CHrtD3Ux5aZlPEN26uKaNw&usqp=CAU" style="object-fit:contain;" alt="Electron本地音乐播放器项目">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/44138/">Electron本地音乐播放器项目</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/44138/">
          
          
            
          
          Electron 🚧🚧🚧1.进程概念
统一时间运行多个程序，每一个程序运行需要一个进程

Electron 底层基于Chromium，底层是一个多进程的，用网页浏览器距离

1.1-主进程main-process
可以使用和系统对接的electron API -创建菜单 上传文件等等
可以创建多个渲染进程 -render-process
全面支持nodejs
只有一个作为整个程序的入口

1
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-07-31 18:14" pubdate>
              2020-07-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E6%A1%8C%E9%9D%A2%E7%AB%AF%E5%BC%80%E5%8F%91/">桌面端开发</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('/') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/62271/">2020-7-30 记</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/62271/">
          
          
            
          
          劳动日记，今天有没有更优秀呢？现在是晚上九点半🕘，本来看会儿vue源码，但是脑子有点转不动，注意力也没有办法集中，可能最近真的有点累了，觉得给自己压力有点大，每天都在让自己学习新知识，来弥补之前自己的知识漏洞，也想让自己更优秀，但是真的集中不了精神了。
想想今天要不要早点睡把！明天清爽的在学习新的知识！
觉得自己只喜欢做动手的事情，但是理论其实也挺重要的，他能给你一种思想，一个方向，提升你很大的
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-07-30 21:21" pubdate>
              2020-07-30
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E8%AE%B0%E5%BD%95%E5%BF%83%E6%83%85/">记录心情</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E6%97%A5%E8%AE%B0/">日记</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/6860/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg" style="object-fit:contain;" alt="剖析VUE源码">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/6860/">剖析VUE源码</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/6860/">
          
          
            
          
          
剖析vue源码
源码入口文件↘️:覆盖$mount执行模版解析和编译🧬
src/platforms/web/entry-runtime-with-compiler.js

1.vue渲染优先级问题
当render函数渲染，el 挂载渲染，template模版同时存在时，哪一个优先级比较高呢❓

&lt;body>
    &lt;div id='app'>
        &#123;&#12
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-07-30 18:55" pubdate>
              2020-07-30
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/vue%E6%A1%86%E6%9E%B6/">vue框架</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E5%89%96%E6%9E%90VUE%E6%BA%90%E7%A0%81/">剖析VUE源码</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <a class="extend prev" rel="prev" href="/page/9/"><i class="iconfont icon-arrowleft"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/8/">8</a><a class="page-number" href="/page/9/">9</a><span class="page-number current">10</span><a class="page-number" href="/page/11/">11</a><a class="extend next" rel="next" href="/page/11/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
    

  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        豫ICP备20009912号-1
      </a>
    </span>
    
  </div>


  
</footer>

<!-- SCRIPTS -->

  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":true,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    
  



  
    
  









  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "http://qiniuyun.quancundexiwang.wang/xmlSearch.xml";
      var inputArea = document.querySelector("#local-search-input");
      inputArea.onclick = function () {
        searchFunc(path, 'local-search-input', 'local-search-result');
        this.onclick = null
      }
    })()
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>



</body>
</html>
